﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dnslist.aspx.cs" Inherits="BrsdServer.dnslist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>域名列表</title>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="js/jquery_ui_css/jquery-ui-1.8.16.custom.css" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
    <script src="js/main.js" type="text/javascript"></script>
</head>
<body>
    <div id="modifyDlg" title="修改DNS信息">
        <ul>
        	<li style="margin-left:40px;">当前域名：<span id="oldDns"></span></li>
        	<li style="margin-left:15px;">DVR当前位置：<span id="oldDvrAddr">1111111</span></li>
        	<li style="margin-left:40px;">修改域名：<input type="text" id="newDns" maxlength="10" /></li>
        	<li>修改DVR所在地：<input type="text" id="dvrAddr" maxlength="10" /></li>
        </ul>
    </div>
    <form id="form1" runat="server">
    
    <h2 class="main_title">DVR域名管理系统</h2>
<p class="main_email"><em>登录时间：<span id="loginTime" style="color:red; font-weight:bold;font-size:16px;"></span></em>
	<!--共 <span id="dvrCount" style="color:red; font-weight:bold;font-size:16px;"></span>&nbsp;&nbsp;&nbsp;台DVR连入系统--></p>
<asp:GridView runat="Server" AutoGenerateColumns="False" Height="60px" Width="98%"
            ID="gvDnsInfo" AllowPaging="True"     DataKeyNames="dns_mac"    
            onpageindexchanging="gvDnsInfo_PageIndexChanging" 
            onrowdatabound="gvDnsInfo_RowDataBound" PageSize="14" 
             onrowdeleting="gvDnsInfo_RowDeleting">
    <Columns>
        <asp:TemplateField HeaderText="序号">
        </asp:TemplateField>
        <asp:BoundField HeaderText="域名" DataField=""/>
        <asp:BoundField HeaderText="IP地址" DataField="dns_ip"/>
        <asp:BoundField HeaderText="端口" DataField="dns_port"/>
        <asp:BoundField HeaderText="MAC地址" DataField="dns_mac"/>
        <asp:BoundField HeaderText="更新时间" DataField="dns_update"/>
        <asp:TemplateField HeaderText="DVR所在地">
            <ItemTemplate>
                <asp:Label ID="dvrAddr" runat="server"></asp:Label>
            </ItemTemplate>
            <ControlStyle Width="100px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="修改">
            <ItemTemplate>
                <a href="javascript:void(0);" id="modify">修改</a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="删除">
            <ItemTemplate>
                <a href="javascript:void(0);" id="del">删除</a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="状态">
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text=''></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <%--<asp:HyperLinkField  HeaderText="域名" Text="查看" Target="_blank"/>--%>
    </Columns>
    <HeaderStyle CssClass="main_tr" Height="30" />
    <RowStyle Height="20" VerticalAlign="Middle" HorizontalAlign="Center" Font-Size="14px" />
    <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
             
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
               
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="3"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
</asp:GridView>
<!--<p class="main_footer">DVR连入总量：<strong>1000&nbsp;台</strong> 今日连入：<strong>20&nbsp;台</strong> 本周连入：<strong>40&nbsp;台</strong></p> -->
    </form>
</body>
</html>